package com.wx.mapper;

import com.wx.common.MyMapper;
import com.wx.entity.SysRangeArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Optional;

/**
 * <p>Title:      SysRangeAreaController. </p>
 * <p>Description 范围区域的关系表 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-22 10:51:46
 */
@Mapper
@Component
public interface SysRangeAreaMapper extends MyMapper<SysRangeArea> {

    Optional<SysRangeArea> selectByKeyOptional(Object key);

    List<SysRangeArea> selectByRangeIds(@Param("rangeIds") List<String> rangeIds);

    int deleteByRangeId(String rangeId);
}
